import request from '@/until/request'
import Vue from 'vue';

// 信息源列表
export const thirdClientList = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}thirdClient/list`,
    method: 'get',
    params: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 新增信息源
export const thirdClientAdd = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}thirdClient/add`,
    method: 'post',
    data: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 修改信息源
export const thirdClientUpdate = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}thirdClient/update`,
    method: 'post',
    data: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 修改信息源key
export const thirdClientRefreshKey = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}thirdClient/refreshKey`,
    method: 'post',
    data: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}
